package TEST.day03;

public class BubbleSort {
    public static void main(String[] args) {
        int a[]=new int[]{1,6,3,9,8,4,2,0,7,5};
        int t;
        for(int j=0;j<a.length-1;j++)
            for(int i=0;i<a.length-1-j;i++){
                if(a[i]>a[i+1]){
                    t=a[i];
                    a[i]=a[i+1];
                    a[i+1]=t;
                }
            }
        for(int i=0;i<a.length;i++){
            System.out.print(a[i]);
        }
    }
}
